package cn.bluemobi.app.utils.task;

import java.util.HashMap;
import java.util.Map;

/**
 * 任务封装
 * 
 * @author mike <br>
 *         2016年1月28日
 * @version 1.0
 */
public class Task {

	private String taskId;
	private Map<String, Object> params = new HashMap<String, Object>();
	private ITaskHandler taskHandler;

	public Task(String taskId, Map<String, Object> params, ITaskHandler taskHandler) {
		this.taskId = taskId;
		this.params = params;
		this.taskHandler = taskHandler;
	}

	public ITaskHandler getTaskHandler() {
		return taskHandler;
	}

	public String getTaskId() {
		return taskId;
	}

	public Map<String, Object> getParams() {
		return params;
	}

}
